package com.ruoyi.project.information.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.information.domain.DataReportBean;
import com.ruoyi.project.information.domain.RyContractTemplate;
import com.ruoyi.project.warehouse.domain.RyDepotItemVo;
import com.ruoyi.project.warehouse.service.IRyDepotItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Classname DataReport
 * @Description 数据报表
 * @Date 2022/10/29 16:21
 * @Created by You
 */
@RestController
@RequestMapping("/information/DataReport/")
public class DataReportController extends BaseController {

    @Autowired
    private IRyDepotItemService ryDepotItemService;

    /**
     * 根据条件查询订单明细
     */
    @GetMapping("/orderDetailList")
    public TableDataInfo orderDetailList(DataReportBean dataReportBean)
    {
        startPage();
        List<RyDepotItemVo> list = ryDepotItemService.orderDetailList(dataReportBean);
        return getDataTable(list);
    }




}
